package com.notepad.ui;

import com.notepad.R;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;

public class AlarmActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		String msg = getIntent().getStringExtra("msg");
		new AlertDialog.Builder(AlarmActivity.this).setTitle("提醒")
		.setIcon(R.drawable.ic_alarm).setMessage(msg)
		.setPositiveButton("知道了", new OnClickListener() {
			
			@Override
			public void onClick(DialogInterface dialog, int which) {
				dialog.dismiss();
				AlarmActivity.this.finish();
			}
		}).create().show();
		
	}
}
